public class Test {
    public  static int max2(int a,int b){
        return a>b?a:b;
    }
    public static int max3(int a,int b, int c){
        return max2(max2(a,b),c);
    }

    public static void main(String[] args) {
        int a=max3(5,10,6);
        System.out.println("Max"+a);
    }
}
